﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="OrderManage.aspx.cs" Inherits="BookManageSys.Admin.OrderManage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .auto-style6 {
            height: 20px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
        <tr>
            <td class="auto-style6">用户名称：<asp:TextBox ID="TxtSearch" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
                            <asp:Button ID="BtnSearch" runat="server" Text="查询" OnClick="BtnSearch_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="1063px" OnRowCommand="GridView1_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <asp:CheckBox ID="ChkSelect" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="orderid" HeaderText="订单ID" />
                        <asp:BoundField DataField="username" HeaderText="用户名" />
                        <asp:BoundField DataField="amount" HeaderText="金额" />
                        <asp:BoundField DataField="orderdate" HeaderText="下单时间" />
                        <asp:TemplateField HeaderText="删除">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CommandArgument='<%# Eval("username") %>' CommandName="删除" Text="删除" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <br />
                <asp:CheckBox ID="ChkAll" runat="server" Text="全选" OnCheckedChanged="ChlAll_CheckedChanged" />
&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button2" runat="server" Text="批量删除" OnClick="Button2_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
